package com.zhangjie.serviceprice.remote;

import com.zhangjie.internalcommon.dto.ResponseResult;
import com.zhangjie.internalcommon.request.ForecastPriceDTO;
import com.zhangjie.internalcommon.response.DirectionResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Auther: zj
 * @Date: 2024/2/7 - 02 - 07 - 10:40
 * @Description: com.zhangjie.serviceprice.remote
 * @version: 1.0
 */
@FeignClient("service-map")
public interface ServiceMapClient {

    @RequestMapping(method = RequestMethod.GET, value = "/direction/driving")
    public ResponseResult<DirectionResponse> direction(@RequestBody ForecastPriceDTO forecastPriceDTO);
}
